Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This improves
linear issue createin three related areas:--projectto keep issue creation interactive, the same way--parentalready doesBefore this change,
linear issue create --project "Dashboard"skipped interactive mode and failed with "Title is required when not using interactive mode". With this PR,--projectis treated as an interactive-safe input, so users can preselect a project without also needing--title.Project prompting in interactive mode remains opt-in.
issue_create_ask_projectdefaults tofalse, so existing interactive behavior is unchanged unless users explicitly enable the new prompt.Changes
--project,--parent, or bothissue_create_ask_projectissue_create_ask_project = falseas the default, so project selection stays out of the main interactive flow unless enabledissue_create_ask_project = false, exposeProjectthrough the existing "Add more fields" flow instead--parentis used without an explicit--project--projecttogether with--parentand defer any invalid combination checks to the Linear APIissue_create_assign_self, with these modes:auto(default): respect Linear'sautoAssignToSelfsettingalways: default-assign created issues to selfnever: never default-assign created issuesNotes
issue_create_ask_projectdefaults tofalse, so users who do not set it will keep the previous interactive flow--assignee, the interactive assignee flow, and--startstill override the default assignment behaviorTesting
deno task codegendeno task checkdeno lintdeno fmtdeno task generate-skill-docsdeno test --allow-all --quiet test/config.test.tsdeno test --allow-all --quiet test/commands/issue/issue-create.test.ts